[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Wolfgang Schuster
ter number in the frame (inside the frame is vertically centered, the title not). Is there a way to align the chapter title with the chapter number? \starttexdefinition MyNumberChapterCommand #1     \inframed[frame=off,rightframe=on,framecolor=black,      rulethickness=1px,height=30pt]{

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Jeroen
bly you should use a \strut in the text or > \inframed[strut=yes] to assure the same text height. > > HTH, Hraban > Am 19.03.24 um 12:59 schrieb Jeroen: > > I have some style adjustments for the chapters. The chapter "numbers" need > to be Boek I, Boek II, etc. A

[NTG-context] Re: Adjusted Chapter Headings

2024-03-19 Thread Hraban Ramm
Hi Jeroen, it might make sense to use \setuphead[chapter][ conversion=R, ] \setuplabeltext[nl][chapter={Boek }] instead of ownnumber. I would use one command for number and title and put both in the same kind of frame. Probably you should use a \strut in the text or \inframed[strut=yes

[NTG-context] Adjusted Chapter Headings

2024-03-19 Thread Jeroen
vertically centered, the title not). Is there a way to align the chapter title with the chapter number? \starttexdefinition MyNumberChapterCommand #1 \inframed[frame=off,rightframe=on,framecolor=black, rulethickness=1px,height=30pt]{#1\enspace} \stoptexdefinition \setuphead[chapter][s

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Marco Patzer
On Wed, 31 Jan 2024 19:41:02 +0100 Hans Hagen wrote: > >> How do it get the same spacing as in the framedtext case? > > > > Is there a solution to this? Or an explanation why the spacing > > differs? > these are fundamentally different mechanisms ..

[NTG-context] Re: textbackground spacing offset

2024-01-31 Thread Hans Hagen
with \inframed in the second case - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl

[NTG-context] Re: externalfigure crashed

2023-12-04 Thread Hans Hagen via ntg-context
themselves. Basically one can sign (with some certificate) and then validate. % sign-001.tex \setupinteraction[state=start] \definefield[signature][signed] \defineoverlay[signature][my signature] \starttext \startTEXpage[offset=1ts,frame=on,framecolor=darkblue] sign: \inframed

[NTG-context] Re: upload

2023-08-10 Thread Thangalin
ter the meeting) but here is one: > > \starttext > > \defineoverlay >[test] >[\color > [blue] > {TEST >\inframed > [foregroundcolor=red] > {xxx} >TEST}] > > \fr

[NTG-context] upload

2023-08-09 Thread Hans Hagen
Hi, I uploaded a new lmtx. There are some new features that wil be revealed in the future (likely after the meeting) but here is one: \starttext \defineoverlay [test] [\color [blue] {TEST \inframed [foregroundcolor=red] {xxx

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
chrieb am 19.05.2023 um 14:22: > > In order to get some inline framed verbatim text, I have in the past > > always used the following: > > > > \starttext > > > > This is an > > \inframed > > [frame=on, > > corner=00, > > radius=2mm,of

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context
Jeroen via ntg-context schrieb am 19.05.2023 um 14:22: In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed   [frame=on,   corner=00, radius=2mm,offset=-1.5pt]   {\ttx \bf example} \stoptext Since this has come-up

[NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
In order to get some inline framed verbatim text, I have in the past always used the following: \starttext This is an \inframed [frame=on, corner=00, radius=2mm,offset=-1.5pt] {\ttx \bf example} \stoptext Since this has come-up more and more often, I created the following: \define[1

[NTG-context] Defineenumeration head offset

2022-11-07 Thread Alexandre Christe via ntg-context
, after={\hrule} ] \defineenumeration [example] [ text=Example, headalign=middle, headcolor=white, headcommand={\inframed[background=color,backgroundcolor=darkgreen,width=\textwidth]}, number=no, before={% \starttextbackground[textFrameEx] }, after

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-26 Thread Hans Hagen via ntg-context
% Cheat to dynamically derive the kerning size by putting Mc in a box. % \newbox\MacKernBox% \setbox\MacKernBox\hbox{\inframed[offset=\zeropoint, width=fit]{Mc}}% \def\MacDelta{\dimexpr\wd\MacKernBox-\wd\MacMBox-\wd\MacCBox\relax}% \def\MacUWidth{\dimexpr\wd\MacCBox-.75\MacDel

Re: [NTG-context] String substitution using regular expressions and backreferences

2022-08-25 Thread Thangalin via ntg-context
% \newbox\MacKernBox% \setbox\MacKernBox\hbox{\inframed[offset=\zeropoint, width=fit]{Mc}}% \def\MacDelta{\dimexpr\wd\MacKernBox-\wd\MacMBox-\wd\MacCBox\relax}% \def\MacUWidth{\dimexpr\wd\MacCBox-.75\MacDelta\relax}% \def\MacRule{\vrule width \MacUWidth height .04em depth \zeropoint \relax}%

Re: [NTG-context] C with macron

2022-08-24 Thread Thangalin via ntg-context
] %\setupbodyfont[scholas] \setupbodyfont[termes] \starttext \newbox\MacMBox \setbox\MacMBox\hbox{M} \newbox\MacCBox \setbox\MacCBox\hbox{c} \newbox\MacKernBox \setbox\MacKernBox\hbox{\inframed[offset=\zeropoint, width=fit]{Mc}} \def\MacDelta{\dimexpr\wd\MacKernBox-\wd\MacMBox-\wd\MacCBox\relax

Re: [NTG-context] right item marks for associative questions?

2022-04-11 Thread śrīrāma via ntg-context
ou are certain that the there will be no multi-line item (i.e. item text is short enough that it fits in slightly less than half of textwidth) you can use an enumeration, and put the contents inside a two-column layout: %%% start example-1 \define[1]\aitemcmd{\inframed[width=1cm,align=flushrigh

Re: [NTG-context] Bug in \framed and \inframed

2021-05-06 Thread Aditya Mahajan
; > \starttext > > > This \inframed{works} fine. > > \inframed{But} this not. > > \stoptext https://wiki.contextgarden.net/FAQ#Why_is_there_a_line-break_in_the_output_after_some_commands.3F Aditya ___ If

[NTG-context] Bug in \framed and \inframed

2021-05-06 Thread Johann Birnick
There is a bug with \framed and related commands: If this is the first object in a line, a linebreak is inserted! See the following example: \starttext This \inframed{works} fine. \inframed{But} this not. \stoptext Thank

Re: [NTG-context] [formatting verbatim text]

2021-04-26 Thread Floris van Manen
to include a highlight definition with white font on black background with an inframed, but that doesn't seem to work (in my definitions that is) ___ If your question is of interest to others as well, please add

Re: [NTG-context] Formulanumbers in margin

2021-03-23 Thread Adam Reviczky
ve tried the numbercommand as well, but that also just makes the >> formula number disappear, unless I am doing something wrong. >> > >> > The framing as per the math manual (manuals/math/math-framing.tex) >> however do

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
as well, but that also just makes the > formula number disappear, unless I am doing something wrong. > > > > The framing as per the math manual (manuals/math/math-framing.tex) > however does work, so not sure: > > \setupformula[numbercommand={\inframed[framecolor=green]}] >

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Henning Hraban Ramm
ex) however > does work, so not sure: > \setupformula[numbercommand={\inframed[framecolor=green]}] Are your margins actually non-zero? (\setuplayout) Maybe check with \showlayout Hraban ___ If your question is

Re: [NTG-context] Formulanumbers in margin

2021-03-21 Thread Adam Reviczky
lob/a0270f13065d116355a953c6f246cbba26289fc2/doc/context/sources/general/manuals/math/math-framing.tex>) however does work, so not sure: \setupformula[numbercommand={\inframed[framecolor=green]}] Adam On Sun, Mar 21, 2021 at 7:47 PM Henning Hraban Ramm wrote: > > > > Am 21.03.2021 um 19:40 sch

Re: [NTG-context] Add items to list with arbitrary page number

2021-03-18 Thread denis.maier
urelistprocessor{chapter:userdata} {\startlinecorrection[blank] \hfill \inframed{you really need to look at \structurelistuservariable{pagenumber}}% \stoplinecorrection} \placelist[chapter] \chapter{one} \writebetweenlist[chapter][location=here]{\blank page 4\blank} \writedatatolist[chapter][location=

Re: [NTG-context] Add items to list with arbitrary page number

2021-03-17 Thread Hans Hagen
} But how can you add an arbitrary page number ? It all depends on what you want to do \starttext \installstructurelistprocessor{chapter:userdata} {\startlinecorrection[blank] \hfill \inframed{you really need to look at \structurelistuservariable{pagenumber}}% \stoplinecorrection

[NTG-context] viewerprefix

2020-11-18 Thread jbf
no result. Any thoughts on how I can achieve this? As I say, everything else works except the desired prefix. Current MWE: \def\mypagenumber#1% {\inframed[frame=off,leftframe=on,rightframe=on,orientation=90]{#1}} \setuppagenumbering[alternative=doublesided,location=margin,command=\mypagenumber

[NTG-context] Bug(s)(?) in \processwords (Mark IV)

2020-10-27 Thread Jairo A. del Rio
The following: \starttext \unexpanded\def\lol#1% { \begingroup \let\processword\inframed \processwords{#1}% \endgroup } \lol{nice $x^2$} %see what happens with the superscript \stoptext works with ConTeXt LMTX, but fails with ConTeXt MkIV: ...mtx/tex/texmf-context/tex/context/base/mkiv/attr

Re: [NTG-context] styling individual parts of ToC entry

2020-09-05 Thread Henning Hraban Ramm
> Am 05.09.2020 um 03:35 schrieb jbf : > > (1) the author's names lined up vertically throughout the ToC, and That would require to typeset the ToC as a table/tabulate; I remember that was hard to do, and I can’t remember in which product I used it, so I can’t look it up. Maybe an

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
=\ColWidth, align=flushleft, ]{% \inframed[ % width=\ColWidth, align=right, frame=off, offset=overlay

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
t, > ] > \setupmargindata[inouter][ > location=right, > stack=continue, > align=flushright, > ] > > \def\FNVOffset{0} % Negative vertical offset of footnotes in lines > % Manual tweaking was necessary for a while, when stacking didn’t work > reliably. > > \def\M

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Henning Hraban Ramm
relax, width=\ColWidth, align=flushleft, ]{% \inframed[ width=\ColWidth, align=right, frame=off, offset=overlay, strut=yes, ]{#1}% }% } \define\PlaceFootnote{% \inmargin[ voffset=\dimexpr-\FNVOffset\lineheight\relax, width=\ColWidth, ]{% \vtop{\placelocalnotes

Re: [NTG-context] Bar within math (amended)

2020-06-09 Thread Wolfgang Schuster
[MyBar]3~kN\stopbar % OK $1 + 2 = \startbar[MyBar]3~\text{kN}\stopbar$ % No background behind space $1 + 2 = \inframed[frame=off,background=color,backgroundcolor=green,offset=0pt,]{3~\text{kN}}$ % OK! \stoptext In the sample 'kN' is a unit, which should be separated by space from

[NTG-context] Bar within math (amended)

2020-06-09 Thread Lukas/ConTeXt
[MyBar]3~\text{kN}\stopbar$ % No background behind space $1 + 2 = \inframed[frame=off,background=color,backgroundcolor=green,offset=0pt,]{3~\text{kN}}$ % OK! \stoptext In the sample 'kN' is a unit, which should be separated by space from the result (here: 3); I am used to put the unit

Re: [NTG-context] image across 2 page spread

2020-04-30 Thread Henning Hraban Ramm
e[#4][width=\doubleWidth]% }% }% } % set caption into footer (left page) \doiftext{#3}{\doifinstring{l}{#2}{% \setlayer[bgpicleft][ x=\backspace, y=\dimexpr\makeupheight + \footerheight\relax, ]{% \doifmodeelse{blackcaption}{% \tfx\vbox{#3}%

Re: [NTG-context] notes in the margin

2019-10-04 Thread Henning Hraban Ramm
} % Negative vertical offset of footnotes in lines % Redefine this as necessary (e.g. if long footnotes overflow into the footer) \def\MarginNote#1{% \inmargin[ voffset=\dimexpr-\FNVOffset\lineheight\relax, width=\ColWidth, align=flushleft, ]{% \inframed[ width=\ColWidth, align=right

Re: [NTG-context] radiobuttons and other widgets

2019-08-05 Thread Henning Hraban Ramm
.5mm,frameoffset=1mm] \definefield[Name][line][MMshortString][] \field[Name] would result in \inframed[width=45mm,frame=off,bottomframe=on,height=2em,offset=0.5mm,frameoffset=1mm]{} while \setupfield[MMradio][frame=on, corner=round, height=0.75em, width=0.75em, align=bottom, offset=-0.

Re: [NTG-context] Itemization formatting

2019-05-29 Thread Wolfgang Schuster
numeration. \definesymbol   [taco]   [{\inframed[frame=off,width=2em,align=flushleft]{\textbullet}}] \starttext \samplefile{zapf} \startitemize[text][symbol=taco]   \item \samplefile{weisman}\par   \startitemize     \item \samplefile{ward}\par   \stopitemize \stopitemize \stoptext

Re: [NTG-context] Layer failure with LMTX

2019-04-08 Thread Hans Hagen
=\topspace, width=\pagewidth, height=\pageheight, ] \startsetups [setupPage] \setlayer[pageNumber] {\hskip\leftmargindistance \inframed[frame=off,leftframe=on,loffset=1em]{\userpage

[NTG-context] Layer failure with LMTX

2019-04-07 Thread Rik Kabel
=\pagewidth, height=\pageheight, ] \startsetups [setupPage] \setlayer[pageNumber] {\hskip\leftmargindistance \inframed[frame=off,leftframe=on,loffset=1em]{\userpage}} \stopsetups \setupbackgrounds[page

Re: [NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
oad,distance=0.5em] % \setupwhitespace[medium] \defineenumeration[Exam] [text={\white\translate[en=Example, kr=예제]}, numbercommand={\inframed[corner=round, framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, background=color,backgroundcolor=blue]}, %height=1.

[NTG-context] index problem: [entry not flushed]

2019-02-11 Thread Jeong Dal
, prefixsegments=chapter, way=bychapter, counter=Theorem, before=\startMyText, after=\stopMyText] \defineenumeration[Exam] [text={\white\translate[en=Example, kr=예제]}, numbercommand={\inframed[corner=round, framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, ba

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-23 Thread Fabrice Couvreur
on, 22 Oct 2018, Fabrice Couvreur wrote: >> >> > Hi, >> > When I use the \inframed{} command twice, they are not on the same >> baseline. >> > Thank you. >> > Fabrice >> > >> > \starttext >> Add \dontleavehmode >> >

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-23 Thread Fabrice Couvreur
Hi Aditya, Thanks. Fabrice Le lun. 22 oct. 2018 à 12:45, Aditya Mahajan a écrit : > On Mon, 22 Oct 2018, Fabrice Couvreur wrote: > > > Hi, > > When I use the \inframed{} command twice, they are not on the same > baseline. > > Thank you. > > Fabrice > &g

Re: [NTG-context] Strange behavior with the command \inframed{}

2018-10-22 Thread Aditya Mahajan
On Mon, 22 Oct 2018, Fabrice Couvreur wrote: Hi, When I use the \inframed{} command twice, they are not on the same baseline. Thank you. Fabrice \starttext Add \dontleavehmode \inframed{\m{I\times X=A^{-1}\times B}} ; \inframed{\m{A^{-1}\times A \times X=A^{-1}\times B}} \stoptext See

[NTG-context] Strange behavior with the command \inframed{}

2018-10-22 Thread Fabrice Couvreur
Hi, When I use the \inframed{} command twice, they are not on the same baseline. Thank you. Fabrice \starttext \inframed{\m{I\times X=A^{-1}\times B}} ; \inframed{\m{A^{-1}\times A \times X=A^{-1}\times B}} \stoptext

Re: [NTG-context] insert natural table at the top left of some png

2018-10-15 Thread Damien Thiriet
tés \eTH > \eTR > \bTR > \bTD > \externalfigure[t:/sources/mill.png][height=12bp] > \eTD > \bTD > zones urbaines > \eTD > \eTR > \bTR > \bTD >

Re: [NTG-context] insert natural table at the top left of some png

2018-10-15 Thread Hans Hagen
] \eTD \bTD zones urbaines \eTD \eTR \bTR \bTD \inframed[frame=off,offset=0pt]{\reuseMPgraphic{voies}} \eTD \bTD infrastructures~: voies ferrées \eTD

[NTG-context] tex error Argument of \titlecmd has an extra }

2018-03-06 Thread ????????
{\ss#1}} \def\PageFrame{% \inframed[width=14mm, height=6mm, frame=off, offset=0pt, framecolor=darkgray, background=color, backgroundcolor=darkgray]{\color[white]{\ssx\pagenumber}}} \def\HeadStr#1{\headnumber[#1]\hskip1em\getmarkin

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Jeong Dal
ple, kr=예제]}, numbercommand={\inframed[corner=round, framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, background=color,backgroundcolor=dGreen]}, %title=no, alternataive=hanging, prefix=yes, prefixsegments=chapter, way=bychapter, before={\blank[big]}, af

Re: [NTG-context] referencing the customized enumeration with framed title

2018-01-12 Thread Hans Hagen
{\DefCommand}, after=\vskip3pt\hrule\blank] %%% Examples with or without solutions \defineenumeration[Exam] [text={\white\translate[en=Example, kr=예제]}, numbercommand={\inframed[corner=round, framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, background=color,back

[NTG-context] referencing the customized enumeration with framed title

2018-01-11 Thread Jeong Dal
bercommand={\inframed[corner=round, framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex, background=color,backgroundcolor=dGreen]}, %height=1.3em, %title=no, prefix=yes, prefixsegments=chapter, way=bychapter, before={\blank[big]}, after=\blank]

Re: [NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Jeong Dal
Dear Hans, Deleting “height=“ fixes the problem. Thank you so much. Best regards, Dalyoung ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Hans Hagen
On 1/4/2018 10:11 AM, Jeong Dal wrote: numbercommand={\inframed[corner=round, framecolor=dYellow, loffset=1ex, roffset=1ex, height=1.3em, background=color,backgroundcolor=dGreen]}, just omit the height key

[NTG-context] about the baseline of \inframed{text} in the enumerations

2018-01-04 Thread Jeong Dal
Dear all, First, Happy New Year! In the output of the following sample code, the baseline of the framed text “Example” is slightly lower than the following sentences. But, in the wiki, \inframed is set center-aligned. Please tell me how to fix it. Thank you for reading. Best regards

Re: [NTG-context] about \inframed[] in \defineenumeration

2017-12-05 Thread Jeong Dal
. Best regards, Dalyoung > you need "numbercommand": > > \defineenumeration >[Example] >[headcommand={\framed[background=color,backgroundcolor=red]}, > > numbercommand={\inframed[height=2ex,background=color,backgroundcolor=green]}, > > titlecom

Re: [NTG-context] about \inframed[] in \defineenumeration

2017-12-05 Thread Hans Hagen
you for reading. Best regards, Dalyoung %%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes

[NTG-context] about \inframed[] in \defineenumeration

2017-12-04 Thread Jeong Dal
%%% minimal example %%% \setupcolors[state=start] \definecolor[dGreen] [r=0,g=.375,b=.0] \defineenumeration[Example] [command={\inframed[corner=round, background=color, backgroundcolor=darkgreen,height=1.3em]}, text=Example, prefix=yes, prefixsegments=chapter, way=bychapter

[NTG-context] Suppress chapter title marking on blank page after chapter

2017-10-14 Thread Rik Kabel
=] \setupheadertexts   [][{\it\getmarking[section]}]     [{\it\getmarking[chapter]}][] \setupheadertexts   [margin]     [] [{\inframed[frame=off,leftframe=on,loffset=1em]     {\userpage}}] [{\inframed[frame=off,rightframe=on,roffset

Re: [NTG-context] Inline stacking of text

2017-04-14 Thread Meer, Hans van der
The following was in answer to 3/11/2017 4:52 PM, Pavneet Arora: On 13 Mar 2017, at 00:27, Hans Hagen <pra...@wxs.nl<mailto:pra...@wxs.nl>> wrote: \starttext \start \definefont[whatever][Sans at 50pt] \dontleavehmode\inframed [foregroundstyle=whatever,

Re: [NTG-context] Inline stacking of text

2017-03-12 Thread Hans Hagen
ame=off,location=middle,align=flushleft]{% \definedfont[Sans at 25pt]\setupinterlinespace\setupwhitespace[-1.0em]{SUB-TITLE\\ SUB-TITLE}}% \stoptext ->8 \starttext \start \definefont[whatever][Sans at 50pt] \dontleavehmode\inframed [foregroun

Re: [NTG-context] Problems with indexing (+feature requests)

2016-08-22 Thread Mohammad Hossein Bateni
][direction=reverse] \setupregister[index][ before=,after=, command=\MyCommand, alternative=b, color=red, ] \def\MyCommand#1{#1} %\def\MyCommand#1{\inframed[frame=no]{#1}} % this fixes the problem \showboxes \starttext \index{آب} \index{عذر} \index[تک]{TEX} testing \placeindex \stoptext any

Re: [NTG-context] \getscaledglyph for width-only

2016-08-20 Thread Hans Hagen
in one direction is kind of bad anyway so if you want just one glyph you can do \inframed{\scale[width=3em,height=1ex]{...}} or whatever suits the purpose Agreed. Here's a little more background, so it makes some sense why I want to scale horizontally, and then I describe my final solution.

Re: [NTG-context] \getscaledglyph for width-only

2016-08-18 Thread Hans Hagen
in one direction is kind of bad anyway so if you want just one glyph you can do \inframed{\scale[width=3em,height=1ex]{...}} or whatever suits the purpose Agreed. Here's a little more background, so it makes some sense why I want to scale horizontally, and then I describe my final solution.

Re: [NTG-context] \getscaledglyph for width-only

2016-08-18 Thread Brian R. Landy
way so if you want just one glyph you can do \inframed{\scale[width=3em,height=1ex]{...}} or whatever suits the purpose Agreed. Here's a little more background, so it makes some sense why I want to scale horizontally, and then I describe my final solution. I have a specific case where I use a

Re: [NTG-context] \getscaledglyph for width-only

2016-08-18 Thread Hans Hagen
atever][default][extend=2.5] \definedfont[Serif*whatever at 12pt] whatever \stoptext Thank you. One thing that \getscaledglyph does it works agnostic to the currently selected font. For example: scaling glyphs in one direction is kind of bad anyway so if you want just one glyph you can do \in

[NTG-context] Problems with indexing (+feature requests)

2016-08-17 Thread Mohammad Hossein Bateni
[direction=reverse] \setupregister[index][ before=,after=, command=\MyCommand, alternative=b, color=red, ] \def\MyCommand#1{#1} %\def\MyCommand#1{\inframed[frame=no]{#1}} % this fixes the problem \showboxes \starttext \index{آب} \index{عذر} \index[تک]{TEX} testing \placeindex \stoptext So

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
on right of the page. The numbering of the > chapters is fixed at 0, why ? > thank you, > Fabrice > > > ​ > \unexpanded\def\HeadTitle#1#2% > {\vbox \bgroup >\setupframed[offset=0.5em,frame=off] >\inframed[width=fit,align=right]{#1}% >\inframe

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
I wish the chapter title on right of the page. The numbering of the chapters is fixed at 0, why ? thank you, Fabrice ​ \unexpanded\def\HeadTitle#1#2% {\vbox \bgroup \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=right]{#1}% \inframed[width=fit,align=right]{#2

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Fabrice Couvreur
Thank you Hans, the code would be : \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \hfill \setupframed[offset=0.5em,frame=off] \inframed[width=fit,align=left,frame=off]{\darkred#1}% \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=darkred]{#2

Re: [NTG-context] Baseline and framed

2016-07-06 Thread Hans Hagen
such ... better use: \unexpanded\def\HeadTitle#1#2% {\hbox to \hsize \bgroup \inframed[width=fit,align=left]{\darkred#1}% \inframed[width=fit,align=right,leftframe=on,rulethickness=4pt,framecolor=dark

Re: [NTG-context] Flushleft formula

2016-06-18 Thread Hans Hagen
mental framed support in beta ... \starttext \setupformulaframed[framecolor=red,frame=on,offset=1ex] \setupformula[option=frame,color=blue] \setupformula[numbercommand={\inframed[framecolor=green]}] \startplaceformula \startformula 2 + 2 = 3 + 1 \stopformula \stopplaceformula \st

Re: [NTG-context] Smaller bullet points

2015-11-29 Thread Hans Hagen
, such that it aligns in the middle of where the regular-sized \bullet would be. I tried using \inframed[height=\lineheight], but I couldn't find a way to make that end up in the right place. \definesymbol [smallbullet] [\raise.1ex\hbox{\mathematics{\scriptstyle\bullet

Re: [NTG-context] Smaller bullet points

2015-11-29 Thread Kate F
][smallbullet] >> >> This aligns the smaller bullet point to the baseline of text, which is >> too low. I'd like to have it vertically centered, such that it aligns >> in the middle of where the regular-sized \bullet would be. I tried >> using \inframed[height=

[NTG-context] Smaller bullet points

2015-11-29 Thread Kate F
the regular-sized \bullet would be. I tried using \inframed[height=\lineheight], but I couldn't find a way to make that end up in the right place. Any suggestions please? Thanks, -- Kate ___ If your question

Re: [NTG-context] Smaller bullet points

2015-11-29 Thread Hans Hagen
aligns the smaller bullet point to the baseline of text, which is too low. I'd like to have it vertically centered, such that it aligns in the middle of where the regular-sized \bullet would be. I tried using \inframed[height=\lineheight], but I couldn't find a way to make that end up in the right

Re: [NTG-context] line number overwriting

2015-04-29 Thread Pierre-François Bonnefoi
Hello, I've tracked down the problem : \def\numeroLigneCode#1{\inframed[width=fit,strut=yes,frame=off,rightframe=on]{\switchtobodyfont[9pt]#1}} \definetyping[code][numbering=line,page=yes,bodyfont=9pt,before={% \begingroup% \setuplinenumbering[location

Re: [NTG-context] line number overwriting

2015-04-29 Thread Wolfgang Schuster
Am 29.04.2015 um 15:05 schrieb Pierre-François Bonnefoi bonne...@unilim.fr: Hello, I've tracked down the problem : \def\numeroLigneCode#1{\inframed[width=fit,strut=yes,frame=off,rightframe=on]{\switchtobodyfont[9pt]#1}} \definetyping[code][numbering=line,page=yes,bodyfont=9pt,before

Re: [NTG-context] issue with image in an xtable

2015-04-21 Thread Hans Hagen
framed (like inframed and such), use align={middle,high} etc for it or the top/bottom keywords - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands

[NTG-context] \framed versus \inframed

2014-07-22 Thread Herbert Voss
I'd expect a double frame for a nested \inframed, too. And also fog in the last row always on the baseline fort \inframed. \starttext foo\framed{\framed{foo}} \inframed{\inframed{foo}} foo fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog \setupframed[strut=no] fog\framed{\framed{fog

Re: [NTG-context] \framed versus \inframed

2014-07-22 Thread Hans Hagen
On 7/22/2014 2:13 PM, Herbert Voss wrote: I'd expect a double frame for a nested \inframed, too. And also fog in the last row always on the baseline fort \inframed. \starttext foo\framed{\framed{foo}} \inframed{\inframed{foo}} foo fog\framed{\framed{fog}} \inframed{\inframed{fog}} fog

Re: [NTG-context] framedtext and itemize

2014-07-22 Thread Herbert Voss
\inframed[width=\localhsize,align=right]{Some text.} Herbert ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman

[NTG-context] Numbering in a frame with a new environment

2014-04-27 Thread Fabrice Couvreur
Hello, How to make the numbering is in the frame and red ? \defineenumeration [ac] [text={ \inframed[frame=off, width=fit, align={right}, background=color, backgroundcolor=lightgray]{Activité}}, headstyle={\bf\feature[+][f:smallcaps

Re: [NTG-context] Numbering in a frame with a new environment

2014-04-27 Thread Wolfgang Schuster
Am 27.04.2014 um 13:28 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com: Hello, How to make the numbering is in the frame and red ? \defineenumeration [ac] [text={ \inframed[frame=off, width=fit, align={right}, background=color

Re: [NTG-context] Aligning Part-Title in TOC

2013-11-06 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, a bit ugly but working somehow \setuphead[part][number=no] %\showboxes \starttext \completecontent \part{\inframed[frame=off]{Part 2:} \inframed [frame=off,width=fit,align=flushleft,location=high] {This is the title of the first part, it is very

[NTG-context] Mixedcolumns maximum height for vertical rule: bug?

2013-09-24 Thread Thangalin
}, aftersection={\stopStyleColumns},] \def\StylePageNumber#1{% {\inframed[ frame=off, background=color, backgroundcolor=red, width=2em, height=2em, ]{#1}}} \setuppagenumbering[location=inright,command=\StylePageNumber,] \starttext\startchapter[title=Chapter] \startsection[title

[NTG-context] Bug in inframed

2013-09-12 Thread H. Özoguz
I found the following bug in \inframed, getting problems with inframing arabic words, try the following example \definefont[arab][name:arial*arabic at 18pt] \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}} \starttext \awort{بِالصَّالِحِينَ}\blank \awort{\inframed{بِالصَّالِحِينَ}} \stoptext

Re: [NTG-context] Bug in inframed

2013-09-12 Thread Aditya Mahajan
On Thu, 12 Sep 2013, H. Özoguz wrote: I found the following bug in \inframed, getting problems with inframing arabic words, try the following example \definefont[arab][name:arial*arabic at 18pt] \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1}}} Untested, but why not \defineframed[awort

Re: [NTG-context] Bug in inframed

2013-09-12 Thread Idris Samawi Hamid ادريس سماوي حامد
Salaam, On Thu, 12 Sep 2013 06:09:46 -0600, H. Özoguz h.oezo...@mmnetz.de wrote: I found the following bug in \inframed, getting problems with inframing arabic words, try the following example \definefont[arab][name:arial*arabic at 18pt] \define[1]\awort{{\hbox{\setupalign[r2l]\arab#1

Re: [NTG-context] Bug in inframed

2013-09-12 Thread H. Özoguz
Salam, @Idris, Aditya: Thank you very much, works perfect for me. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] \underbar problem

2013-09-06 Thread Hans Hagen
On 9/5/2013 5:43 PM, Alan Bowen wrote: In a lengthy document, \underbar occasionally has no effect. From the wiki, I have learned that this can be rectified using \inframed[frame=off]{\underbar{….}}. The problem is that this only works for short text: lengthy text, say a paragraph, gets printed

Re: [NTG-context] \underbar problem

2013-09-06 Thread Hans Hagen
of through them. (The problem was experienced with Linux Libertine and mkiv, and not with Latin Modern.) The workarounds are: o Put the overstriked text in a |\inframed[frame=off]{}|. As with \overstrike, with \underbar “off target” can mean “nowhere”. \underbar and Latin Modern

Re: [NTG-context] \underbar problem

2013-09-06 Thread Alan Bowen
was experienced with Linux Libertine and mkiv, and not with Latin Modern.) The workarounds are: - Put the overstriked text in a \inframed[frame=off]{}. As with \overstrike, with \underbar “off target” can mean “nowhere”. \underbar and Latin Modern witrh microtypography works but not \underbar and Antykwa

[NTG-context] \underbar problem

2013-09-05 Thread Alan Bowen
In a lengthy document, \underbar occasionally has no effect. From the wiki, I have learned that this can be rectified using \inframed[frame=off]{\underbar{….}}. The problem is that this only works for short text: lengthy text, say a paragraph, gets printed as a single line. Is there a way (a key

[NTG-context] Update value of \headerheight based on header content

2013-05-07 Thread Adam Khan
The code for my headers is of the form: \setupheadertexts[{\inframed[frame=off,width=\textwidth,location=depth,align={right,broad,nothyphenated},tolerance=verytolerant]{Author\\Title\\\tab{\getmarking[chapternumber]} \getmarking[chapter] \wordright{\pagenumber}}}] As you might imagine, the name

[NTG-context] Some questions

2013-01-25 Thread Alain Delmotte
is the manual about it? - The boxes on page 45, second example are not at the right position, particularly the second is on the same line as the first. \leftaligned {\inframed[width=fit]{People in Hasselt}} \midaligned {\inframed[height=1.5cm,frame=off]{have a}} \rightaligned {\inframed[background

Re: [NTG-context] Some questions

2013-01-25 Thread Marco Patzer
the chemical macros. I don't know the current state. - The boxes on page 45, second example are not at the right position, particularly the second is on the same line as the first. \leftaligned {\inframed[width=fit]{People in Hasselt}} \midaligned {\inframed[height=1.5cm,frame=off]{have

Re: [NTG-context] Some questions

2013-01-25 Thread Alain Delmotte
as the first. \leftaligned {\inframed[width=fit]{People in Hasselt}} \midaligned {\inframed[height=1.5cm,frame=off]{have a}} \rightaligned {\inframed[background=screen]{historic background}} In MkIV there's a new syntax you can use: \startlinealignment [left] \inframed[width=fit]{People in Hasselt

[NTG-context] Lua inmargin inframed

2013-01-04 Thread Procházka Lukáš Ing . - Pontex s . r . o .
Hello, the inframed B in margin created by Lua doesn't appear, although corresponding Ctx code works: \starttext \inmargin{\inframed{A}} \input knuth \blank \directlua{context.inmargin(context.delayed.inframed(B)); context(Test.)} \stoptext What am I doing wrong? TIA

Re: [NTG-context] Lua inmargin inframed

2013-01-04 Thread Wolfgang Schuster
Am 04.01.2013 um 16:22 schrieb Procházka Lukáš Ing. - Pontex s. r. o. l...@pontex.cz: Hello, the inframed B in margin created by Lua doesn't appear, although corresponding Ctx code works: \starttext \inmargin{\inframed{A}} \input knuth \blank \directlua{context.inmargin

  1   2   3   >